test(api): add recent activity hydration regression coverage#716
test(api): add recent activity hydration regression coverage#716phernandez merged 1 commit intomainfrom
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 2m 23s —— View job PR Review: test(api): add recent activity hydration regression coverage
SummaryThis PR adds clean regression coverage for the N+1 fix from #710. The test structure mirrors the existing Code Quality Checklist
Review ObservationsThe good:
Minor observations (no blockers):
VerdictApprove. The tests are well-structured, clearly express their intent, and lock down the right invariants for the N+1 fix. No functional issues found. |
Summary
recent_activityhydration into_graph_context()find_by_ids(...)lookupWhy
Issue #710 described an N+1 lookup pattern in
recent_activityhydration. The batching logic is already present onmain, so this PR adds regression coverage to make sure that behavior stays in place.Refs #710.
Test plan
uv run pytest -q tests/api/v2/test_search_hydration.py tests/api/v2/test_memory_hydration.py tests/api/v2/test_utils_telemetry.py